﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014AD RID: 5293
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpdateFloorSavedValueNotify : IMessage<UpdateFloorSavedValueNotify>, IMessage, IEquatable<UpdateFloorSavedValueNotify>, IDeepCloneable<UpdateFloorSavedValueNotify>, IBufferMessage
	{
		// Token: 0x17004294 RID: 17044
		// (get) Token: 0x0600EC8D RID: 60557 RVA: 0x00277A5C File Offset: 0x00275C5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpdateFloorSavedValueNotify> Parser
		{
			get
			{
				return UpdateFloorSavedValueNotify._parser;
			}
		}

		// Token: 0x17004295 RID: 17045
		// (get) Token: 0x0600EC8E RID: 60558 RVA: 0x00277A63 File Offset: 0x00275C63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpdateFloorSavedValueNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004296 RID: 17046
		// (get) Token: 0x0600EC8F RID: 60559 RVA: 0x00277A75 File Offset: 0x00275C75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpdateFloorSavedValueNotify.Descriptor;
			}
		}

		// Token: 0x0600EC90 RID: 60560 RVA: 0x00277A7C File Offset: 0x00275C7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateFloorSavedValueNotify()
		{
		}

		// Token: 0x0600EC91 RID: 60561 RVA: 0x00277A90 File Offset: 0x00275C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateFloorSavedValueNotify(UpdateFloorSavedValueNotify other) : this()
		{
			this.dimensionId_ = other.dimensionId_;
			this.planeId_ = other.planeId_;
			this.savedValue_ = other.savedValue_.Clone();
			this.floorId_ = other.floorId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EC92 RID: 60562 RVA: 0x00277AE9 File Offset: 0x00275CE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateFloorSavedValueNotify Clone()
		{
			return new UpdateFloorSavedValueNotify(this);
		}

		// Token: 0x17004297 RID: 17047
		// (get) Token: 0x0600EC93 RID: 60563 RVA: 0x00277AF1 File Offset: 0x00275CF1
		// (set) Token: 0x0600EC94 RID: 60564 RVA: 0x00277AF9 File Offset: 0x00275CF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DimensionId
		{
			get
			{
				return this.dimensionId_;
			}
			set
			{
				this.dimensionId_ = value;
			}
		}

		// Token: 0x17004298 RID: 17048
		// (get) Token: 0x0600EC95 RID: 60565 RVA: 0x00277B02 File Offset: 0x00275D02
		// (set) Token: 0x0600EC96 RID: 60566 RVA: 0x00277B0A File Offset: 0x00275D0A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlaneId
		{
			get
			{
				return this.planeId_;
			}
			set
			{
				this.planeId_ = value;
			}
		}

		// Token: 0x17004299 RID: 17049
		// (get) Token: 0x0600EC97 RID: 60567 RVA: 0x00277B13 File Offset: 0x00275D13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<string, int> SavedValue
		{
			get
			{
				return this.savedValue_;
			}
		}

		// Token: 0x1700429A RID: 17050
		// (get) Token: 0x0600EC98 RID: 60568 RVA: 0x00277B1B File Offset: 0x00275D1B
		// (set) Token: 0x0600EC99 RID: 60569 RVA: 0x00277B23 File Offset: 0x00275D23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FloorId
		{
			get
			{
				return this.floorId_;
			}
			set
			{
				this.floorId_ = value;
			}
		}

		// Token: 0x0600EC9A RID: 60570 RVA: 0x00277B2C File Offset: 0x00275D2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpdateFloorSavedValueNotify);
		}

		// Token: 0x0600EC9B RID: 60571 RVA: 0x00277B3C File Offset: 0x00275D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpdateFloorSavedValueNotify other)
		{
			return other != null && (other == this || (this.DimensionId == other.DimensionId && this.PlaneId == other.PlaneId && this.SavedValue.Equals(other.SavedValue) && this.FloorId == other.FloorId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EC9C RID: 60572 RVA: 0x00277BAC File Offset: 0x00275DAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DimensionId != 0U)
			{
				num ^= this.DimensionId.GetHashCode();
			}
			if (this.PlaneId != 0U)
			{
				num ^= this.PlaneId.GetHashCode();
			}
			num ^= this.SavedValue.GetHashCode();
			if (this.FloorId != 0U)
			{
				num ^= this.FloorId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EC9D RID: 60573 RVA: 0x00277C2B File Offset: 0x00275E2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EC9E RID: 60574 RVA: 0x00277C33 File Offset: 0x00275E33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EC9F RID: 60575 RVA: 0x00277C3C File Offset: 0x00275E3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FloorId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.FloorId);
			}
			if (this.PlaneId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.PlaneId);
			}
			if (this.DimensionId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.DimensionId);
			}
			this.savedValue_.WriteTo(ref output, UpdateFloorSavedValueNotify._map_savedValue_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600ECA0 RID: 60576 RVA: 0x00277CC4 File Offset: 0x00275EC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DimensionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DimensionId);
			}
			if (this.PlaneId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlaneId);
			}
			num += this.savedValue_.CalculateSize(UpdateFloorSavedValueNotify._map_savedValue_codec);
			if (this.FloorId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FloorId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600ECA1 RID: 60577 RVA: 0x00277D48 File Offset: 0x00275F48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpdateFloorSavedValueNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DimensionId != 0U)
			{
				this.DimensionId = other.DimensionId;
			}
			if (other.PlaneId != 0U)
			{
				this.PlaneId = other.PlaneId;
			}
			this.savedValue_.MergeFrom(other.savedValue_);
			if (other.FloorId != 0U)
			{
				this.FloorId = other.FloorId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600ECA2 RID: 60578 RVA: 0x00277DBD File Offset: 0x00275FBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600ECA3 RID: 60579 RVA: 0x00277DC8 File Offset: 0x00275FC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 8U)
					{
						this.FloorId = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.PlaneId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.DimensionId = input.ReadUInt32();
						continue;
					}
					if (num == 66U)
					{
						this.savedValue_.AddEntriesFrom(ref input, UpdateFloorSavedValueNotify._map_savedValue_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005D89 RID: 23945
		private static readonly MessageParser<UpdateFloorSavedValueNotify> _parser = new MessageParser<UpdateFloorSavedValueNotify>(() => new UpdateFloorSavedValueNotify());

		// Token: 0x04005D8A RID: 23946
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D8B RID: 23947
		public const int DimensionIdFieldNumber = 7;

		// Token: 0x04005D8C RID: 23948
		private uint dimensionId_;

		// Token: 0x04005D8D RID: 23949
		public const int PlaneIdFieldNumber = 3;

		// Token: 0x04005D8E RID: 23950
		private uint planeId_;

		// Token: 0x04005D8F RID: 23951
		public const int SavedValueFieldNumber = 8;

		// Token: 0x04005D90 RID: 23952
		private static readonly MapField<string, int>.Codec _map_savedValue_codec = new MapField<string, int>.Codec(FieldCodec.ForString(10U, ""), FieldCodec.ForInt32(16U, 0), 66U);

		// Token: 0x04005D91 RID: 23953
		private readonly MapField<string, int> savedValue_ = new MapField<string, int>();

		// Token: 0x04005D92 RID: 23954
		public const int FloorIdFieldNumber = 1;

		// Token: 0x04005D93 RID: 23955
		private uint floorId_;
	}
}
